package com.ats.serviceimpl;

import java.util.ArrayList;
import java.util.List;

import com.ats.dao.StudentDao_xh;
import com.ats.daoimpl.StudentDaoImpl_xh;
import com.ats.model.Student;
import com.ats.service.StudentService_xh;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
/**
 * 学生个人功能的Service层实现类
 * @author xh
 *
 */
public class StudentServiceImpl_xh implements StudentService_xh {
	StudentDao_xh sdao = new StudentDaoImpl_xh();
	@Override
	public String FindSnameBySid(int sid) {
		// TODO Auto-generated method stub
		return sdao.FindSnameBySid(sid);
	}
	@Override
	public JSONArray FindStudentByUid(int uid) {
		// TODO Auto-generated method stub
		return sdao.FindStudentByUid(uid);
	}
	@Override
	public boolean updateStudentBySid(String name, int age, String address, String number, int sid) {
		// TODO Auto-generated method stub
		return sdao.updateStudentBySid(name, age, address, number, sid);
	}
	@Override
	public boolean updateStudentPswBySid(String uname, String upsw, int sid) {
		// TODO Auto-generated method stub
		return sdao.updateStudentPswBySid(uname, upsw, sid);
	}
	@Override
	public List<Student> findStudentSid() {
		// TODO Auto-generated method stub	
		return sdao.findStudentSid();
	}
	@Override
	public int findSidByUid(int uid) {
		// TODO Auto-generated method stub
		return sdao.findSidByUid(uid);
	}






}
